"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const uuid_1 = require("../utils/uuid");
class Job {
    getId() {
        return this.id;
    }
    getUrl() {
        return this.url;
    }
    setQueueName(name) {
        this.queueName = name;
    }
    setTryNum(tryNum) {
        this.tryNum = tryNum;
    }
    setStatus(status) {
        this.status = status;
    }
    setCreateTime(time) {
        this.createTime = time;
    }
    getCreateTime() {
        return this.createTime;
    }
    constructor(url) {
        this.id = uuid_1.default();
        this.createTime = new Date().getTime();
        this.url = url;
    }
}
exports.default = Job;
